package demo2;

import java.io.*;

public class DEMO_09 {
    public static void main(String[] args) throws IOException {
        OutputStream outputStream=new FileOutputStream("d:/temp/text2.txt");
        PrintWriter printWriter=new PrintWriter(outputStream);
        printWriter.println(123);
        printWriter.print("我");
        printWriter.flush();
        printWriter.close();
        outputStream.close();
    }
}
